Skip to main content

Update User Detail

PUT : http://<base_url>/digipay/v3/user/user_detail

This API used to Update new User Data into the system

BODY PARAMS:-

ParameterTypeDescriptionValue
idStringUnique id assign to user retrive a user details64b835cb80b542d199c47caf5ccd4351
first_nameStringfirst name of userJohn
last_nameStringlast name of userDeo
passwordStringpassword of user123
emailStringemail of userabc.123@email.com
dial_codeStringdial code of country+91
phone_numberStringphone number of user98989865
login_pinStringlogin pin use to sign in to account123
transaction_pinStringtransaction of amount transfer to another account1234
user_typeIntInterger type of user2
role_idStringunqiue id assigned to role detail1234
updated_dateStringa unix date of time1234
device_infoRaw Jsondevice info of user device
verificationRaw Jsonverify to user detail
status_idInt2
birth_dateInt1078203600
imagestringimage URl
country_idstringunique id assign to country retrive a country detail123
kyc_statusInt2
kyc_process_statusInt2
location_pointRaw Json
ratingDouble4.5
account_numberStringunique number assign to bank account of differnt user12333456789
parent_user_idStringParent user ID2
display_nameStringDisplay nameabc
kyc_status_idStringunique id assign to kyc status retrive to kyc status detail123

HEADERS:-

ParameterTypeDescriptionValue
AuthorizationStringIt is a combination of type and token to authenticate user for the given tokenToken duik7309njdlkhdauhknksadhjkas986876sd873j
CompanyIDStringCompany_id is a unique primary id, that is represent company detail76bc712200ca444fa334f9e55e5fd7a8

Request Body:-

Request Example
curl --request PUT \
--url http://192.168.1.102:8014/digipay/v3/user/user_detail \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": "64b835cb80b542d199c47caf5ccd4351",
"first_name": "john",
"last_name": "Doe",
"password": "S6f1zR",
"email": "abc.123@email.com",
"dial_code": "+91",
"phone_number": "98989865",
"login_pin": "123",
"transaction_pin": "1234",
"user_type": 2,
"role_id": "1234",
"updated_date": "1658471218",
"verification": {},
"status_id": 2,
"birth_date": 1078203600,
"image": "Image url",
"country_id": "123",
"kyc_status": 2,
"kyc_process_status": 1,
"location_point": {},
"rating": 4.5,
"account_number": "12333456789",
"parent_user_id": "123",
"display_name": "abc",
"kyc_status_id": "123"
}
'

Response:-

Response 200(OK)

{
"success": 1,
"error": [],
"data": {
"message": "User detail updated successfully."
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}

RESPONSES :-

Status CodeDescription
200OK
400Bad Request
404Not Found
500Internal Server Error